/**
 * Created by rongyao on 2017/10/17.
 */
var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var userSchema = new mongoose.Schema({
	username:String,
	password:String,
	age:Number,
	address:String,
	gender:String,
	date:{type:Date,default:Date.now}
});
userSchema.plugin(mongoosePaginate);

module.exports = mongoose.model('User',userSchema,'user'); // Model.paginate()